<template>
  <div class="page">
  <el-breadcrumb separator="/">
  <el-breadcrumb-item  v-for="(item,index) in $route.matched" :key="index">
      <router-link to="/home/main" v-if="index==0">
        首页
      </router-link>
       <span v-else>{{item.meta.title}}</span>
    </el-breadcrumb-item>
</el-breadcrumb>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  data() {
    return {}
  },
  components: {},
  created(){
      console.log(this.$route);
  }
}
</script>

<style scoped lang="stylus"></style>
